<!--
 * @Author: [kangjie]
 * @Date: 2022-04-08 14:07:07
 * @LastEditors: [kangjie]
 * @LastEditTime: 2022-04-08 14:24:58
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/axios-0.20.0.js"></script>
  <script src="./js/qs-6.9.4.js"></script>
</head>

<body>
  <script>
    async function findAll() {
      try {
        let res = await axios({
          url: 'http://121.199.0.35:8888/index/carousel/findAll'
        });
        console.log(res, '成功的响应');
      } catch (e) {
        console.log(e,'捕获错误信息');
      } finally {
        console.log('最终执行');
      }
    }
    findAll()


    // axios({
    //   url:'http://121.199.0.35:8888/index/carousel/findAll'
    // }).then(res=>{
    //   console.log(res,'成功回调函数');
    //   console.log(res.data.data);
    // }).catch(err=>{
    //   console.log(err,'请求失败回调');
    // }).finally(()=>{
    //   console.log('最终执行');
    // });
  </script>
</body>

</html>